﻿using UnityEngine;

namespace Yoozoo.Gameplay.Liberty.Utility
{
    public static class LibertyTransformUtility
    {
        
        
        
        
        public static bool IsChildOf(Transform source, Transform target)
        {
            Transform child = source;
            while (child != null)
            {
                if (child == target) return true;
                child = child.parent;
            }
            return false;
        }
        
        
        
    }
}